<?php
namespace app\portal\controller;
use cmf\controller\HomeBaseController;

use think\Db;

class AboutController extends HomeBaseController
{
    //文章列表
    public function index(){
        if(request()->isAjax()){
            $type_id=input('type_id');
            $list=get_list($type_id);
            return json(['list'=>$list,'page'=>$list->render()]);
        }else{
            $list_1 = get_list(11);
            $list_2 = get_list(12);
            $this->assign('list_1', $list_1);
            $this->assign('list_2', $list_2);
            return $this->fetch(':aboutUs');
        }
    }


}